package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsCommentGetList;
/**
 * 获取朋友圈某帖子评论回复列表，回复评论只能层级一次（如xxx回复yyy：123abc）
 * @author wliu
 * edit tse
 */
public class MomentsCommentGetListResponse extends RudderResponse{
    
    private List<MomentsCommentGetList> getList = new ArrayList<MomentsCommentGetList>();
		
	
    /**
     * @return getList
     */	
    public List<MomentsCommentGetList> getGetList() { 
	    return this.getList;
    };
	
	/**
     * @return getList
     */	
    public void setGetList(List<MomentsCommentGetList> getList) { 
        this.getList = getList;
    };
    
	
        
    private static void filterFor(MomentsCommentGetList moments) {
        if (moments.getCommentId() == null) {
            moments.setCommentId("");
        }
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getNickname() == null) {
            moments.setNickname("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
        if (moments.getContent() == null) {
            moments.setContent("");
        }
        if (moments.getCreateTime() == null) {
            moments.setCreateTime("");
        }
        if (moments.getToNickname() == null) {
            moments.setToNickname("");
        }
    }
        
    public static void filter(MomentsCommentGetListResponse moments) {
        if (moments.getGetList() == null) {
            moments.setGetList(new ArrayList<MomentsCommentGetList>());
        } else {
            for (MomentsCommentGetList item : moments.getGetList()) {
                filterFor(item);
            }
        }
    }
}
